package com.evony.client.action 
{
    import com.evony.common.*;
    import com.evony.common.module.*;
    
    public class TruceCommands extends Object
    {
        public function TruceCommands()
        {
            super();
            return;
        }

        public function cancelDreamTruce(arg1:String, arg2:Function=null):com.evony.common.module.CommandResponse
        {
            this._cancelDreamTruce_callback = arg2;
            var loc1:*=new Object();
            loc1.password = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("truce.cancelDreamTruce", loc1);
            }
            return null;
        }

        public function setSender(arg1:com.evony.common.Sender):void
        {
            this.sender = arg1;
            return;
        }

        public function setDreamTruce(arg1:int, arg2:int, arg3:int, arg4:String, arg5:Function=null):com.evony.common.module.CommandResponse
        {
            this._setDreamTruce_callback = arg5;
            var loc1:*;
            (loc1 = new Object()).hour = arg1;
            loc1.minute = arg2;
            loc1.second = arg3;
            loc1.password = arg4;
            if (this.sender != null) 
            {
                sender.sendMessage("truce.setDreamTruce", loc1);
            }
            return null;
        }

        public function changeDreamTruceTime(arg1:int, arg2:int, arg3:int, arg4:String, arg5:Function=null):com.evony.common.module.CommandResponse
        {
            this._changeDreamTruceTime_callback = arg5;
            var loc1:*;
            (loc1 = new Object()).hour = arg1;
            loc1.minute = arg2;
            loc1.second = arg3;
            loc1.password = arg4;
            if (this.sender != null) 
            {
                sender.sendMessage("truce.changeDreamTruceTime", loc1);
            }
            return null;
        }

        public var _setDreamTruce_callback:Function;

        public var _changeDreamTruceTime_callback:Function;

        public var _cancelDreamTruce_callback:Function;

        internal var sender:com.evony.common.Sender;
    }
}
